home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
LOC
/
ZLOCCOUN.C
< prev
next >
Wrap
Text File
|
1991-11-20
|
4KB
|
140 lines
/* zLOCCounter.c -- window methods */
/* Created 10/17/91 4:10 PM by AppMaker */
/* We recommend that you not modify this module and instead modify */
/* its subclass, LOCCounter. The 'z' prefix on this module marks */
/* a module which is likely to be regenerated by AppMaker after you */
/* make changes to the user interface. The modules without the 'z' */
/* prefix will not be regenerated by AppMaker unless you delete them. */
/* Using a separate subclass to override the AppMaker-generated code */
/* lets you regenerate code without losing your hand-coded changes. */
#include <Commands.h>
#include <Constants.h>
#include <Global.h>
#include <CDecorator.h>
#include <CDesktop.h>
#include <CError.h>
#include <CRadioGroup.h>
#include <CSizeBox.h>
#include <TBUtilities.h>
#include "zLOCCounter.h"
#define LOCCounterID 1 /* resource ID for WIND template */
extern CDecorator *gDecorator; /* Window dressing object */
extern CDesktop *gDesktop; /* The enclosure for all windows */
extern CError *gError; /* The error handling object */
extern CBureaucrat *gGopher; /* The current boss in the chain of command */
/*----------*/
void ZLOCCounter::ILOCCounter (CDirector *aSupervisor)
{
CView *enclosure;
CBureaucrat *supervisor;
CSizeBox *aSizeBox;
CRadioGroup *aGroup;
CRadioButton *theDisabledRadio;
IWindow (LOCCounterID, FALSE, gDesktop, aSupervisor);
itsMainPane = new (CPane);
itsMainPane->IPane ( this, this, 1, 1, 0, 0, sizFIXEDLEFT, sizFIXEDTOP );
itsMainPane->FitToEnclosure ( true, true );
itsGopher = aSupervisor;
SourceLinesLabel = new (CLabelText);
SourceLinesLabel->IViewRes ('LbTx', 129, itsMainPane, itsMainPane);
SemicolonsLabel = new (CLabelText);
SemicolonsLabel->IViewRes ('LbTx', 130, itsMainPane, itsMainPane);
FilesLabel = new (CLabelText);
FilesLabel->IViewRes ('LbTx', 132, itsMainPane, itsMainPane);
numLOCNowLabel = new (CLabelText);
numLOCNowLabel->IViewRes ('LbTx', 133, itsMainPane, itsMainPane);
numSemicolonsNowLabel = new (CLabelText);
numSemicolonsNowLabel->IViewRes ('LbTx', 134, itsMainPane, itsMainPane);
numClassesNowLabel = new (CLabelText);
numClassesNowLabel->IViewRes ('LbTx', 136, itsMainPane, itsMainPane);
CurrentLabel = new (CLabelText);
CurrentLabel->IViewRes ('LbTx', 138, itsMainPane, itsMainPane);
PreviousLabel = new (CLabelText);
PreviousLabel->IViewRes ('LbTx', 139, itsMainPane, itsMainPane);
numLOCPrevLabel = new (CLabelText);
numLOCPrevLabel->IViewRes ('LbTx', 140, itsMainPane, itsMainPane);
numSemicolonsPrevLabel = new (CLabelText);
numSemicolonsPrevLabel->IViewRes ('LbTx', 141, itsMainPane, itsMainPane);
numClassesPrevLabel = new (CLabelText);
numClassesPrevLabel->IViewRes ('LbTx', 143, itsMainPane, itsMainPane);
Rect12 = new (CBorder);
Rect12->IViewRes ('Bord', 129, itsMainPane, itsMainPane);
Rect13 = new (CBorder);
Rect13->IViewRes ('Bord', 130, itsMainPane, itsMainPane);
Rect14 = new (CBorder);
Rect14->IViewRes ('Bord', 132, itsMainPane, itsMainPane);
Rect15 = new (CBorder);
Rect15->IViewRes ('Bord', 133, itsMainPane, itsMainPane);
Rect16 = new (CBorder);
Rect16->IViewRes ('Bord', 134, itsMainPane, itsMainPane);
Rect17 = new (CBorder);
Rect17->IViewRes ('Bord', 136, itsMainPane, itsMainPane);
DeltaLabel = new (CLabelText);
DeltaLabel->IViewRes ('LbTx', 149, itsMainPane, itsMainPane);
numLOCDeltaLabel = new (CLabelText);
numLOCDeltaLabel->IViewRes ('LbTx', 150, itsMainPane, itsMainPane);
numSemicolonsDeltaLabel = new (CLabelText);
numSemicolonsDeltaLabel->IViewRes ('LbTx', 151, itsMainPane, itsMainPane);
numClassesDeltaLabel = new (CLabelText);
numClassesDeltaLabel->IViewRes ('LbTx', 153, itsMainPane, itsMainPane);
Rect22 = new (CBorder);
Rect22->IViewRes ('Bord', 141, itsMainPane, itsMainPane);
Rect23 = new (CBorder);
Rect23->IViewRes ('Bord', 142, itsMainPane, itsMainPane);
Rect24 = new (CBorder);
Rect24->IViewRes ('Bord', 144, itsMainPane, itsMainPane);
} /* ILOCCounter */
/*----------*/
void ZLOCCounter::Activate (void)
{
inherited::Activate ();
gGopher = itsGopher;
} /* Activate */
/*----------*/
void ZLOCCounter::DoCommand (long theCommand)
{
switch (theCommand) {
default:
inherited::DoCommand (theCommand);
break;
} /* switch */
} /* DoCommand */
/* zLOCCounter.c */